package com.heatingcharge.mapper.unit;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heatingcharge.dto.ResHouseDTO;
import com.heatingcharge.entity.unit.ResHouse;
import com.heatingcharge.param.SearchParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 房屋信息 Mapper 接口
 * </p>
 *
 * @author devin.jiang
 * @since 2019-07-12
 */
@Component
public interface ResHouseMapper extends BaseMapper<ResHouse> {
    /**
     * 分页获取房间信息
     * @param page
     * @param resHouseDTO
     * @return
     */
    IPage<ResHouseDTO> selectHouses(Page page, @Param("query") ResHouseDTO resHouseDTO);

    List<ResHouseDTO> selectHouses(@Param("query") SearchParam searchParam);

}
